package com.woniuxy.mesboot.service.impl;

import com.woniuxy.mesboot.entity.MesWorkOrder;
import com.woniuxy.mesboot.mapper.MesWorkOrderMapper;
import com.woniuxy.mesboot.service.WorkOrderService;
import com.woniuxy.mesboot.vo.WorkProgressVO;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;
@Service
public class WorkOrderServiceImpl implements WorkOrderService {
    @Resource
    private MesWorkOrderMapper workOrderMapper;

    @Override
    public Integer selectFinish() {
        return workOrderMapper.selectFinish();
    }

    @Override
    public Integer selectByTimeCount() {
        return workOrderMapper.selectByTimeCount();
    }

    @Override
    public List<WorkProgressVO> selectByTime() {
        return workOrderMapper.selectByTime();
    }

    @Override
    public List<MesWorkOrder> selectAll() {
        return workOrderMapper.selectAll();
    }

    @Override
    public int deleteByPrimaryKey(Long id) {
        return workOrderMapper.deleteByPrimaryKey(id);
    }

    @Override
    public int insert(MesWorkOrder record) {
        return workOrderMapper.insert(record);
    }

    @Override
    public int insertSelective(MesWorkOrder record) {
        return workOrderMapper.insertSelective(record);
    }

    @Override
    public MesWorkOrder selectByPrimaryKey(Long id) {
        return workOrderMapper.selectByPrimaryKey(id);
    }

    @Override
    public int updateByPrimaryKeySelective(MesWorkOrder record) {
        return workOrderMapper.updateByPrimaryKeySelective(record);
    }

    @Override
    public int updateByPrimaryKey(MesWorkOrder record) {
        return workOrderMapper.updateByPrimaryKey(record);
    }
}
